﻿using Common;
using IDAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DAL
{
     public class UpdatePassword_Dal : IUpdatePassword_IDal
    {
        void IUpdatePassword_IDal.Password(string pwd)
        {
			try
			{
				DAL.SQLHepler.Update($"update Account_Manage set password='{pwd}' where Account='{login_Com.account.Account}' ");
				login_Com.account.password = pwd;
			}
			catch (Exception ex)
			{
				throw ex;
			}
        }
    }
}
